import request from '@/utils/request'

// 查询预约接单列表
export function listOrder(query) {
  return request({
    url: '/system/bookingOrder/list',
    method: 'get',
    params: query
  })
}

// 查询预约接单详细
export function getOrder(bookingOrderId) {
  return request({
    url: '/system/bookingOrder/' + bookingOrderId,
    method: 'get'
  })
}

// 新增预约接单
export function addOrder(data) {
  return request({
    url: '/system/bookingOrder',
    method: 'post',
    data: data
  })
}

// 修改预约接单
export function updateOrder(data) {
  return request({
    url: '/system/bookingOrder',
    method: 'put',
    data: data
  })
}

// 删除预约接单
export function delOrder(bookingOrderId) {
  return request({
    url: '/system/bookingOrder/' + bookingOrderId,
    method: 'delete'
  })
}

// 导出预约接单
export function exportOrder(query) {
  return request({
    url: '/system/bookingOrder/export',
    method: 'get',
    params: query
  })
}